package cn.jinjie.day05.test6;

public class Computer {
    public static void main(String[] args) {

    }

    public static void useUSB() {
        Mouse m = new Mouse();
        m.connect();
        Keyboard k = new Keyboard();
        k.connect();
    }

    public static void noUseUSB() {
        Mouse m = new Mouse();
        m.disconnet();
        Keyboard k = new Keyboard();
        k.disconnet();
    }

    public  void start() {
        System.out.println("电脑开机");
        useUSB();
    }

    public  void end() {
        System.out.println("电脑关机");
        noUseUSB();
    }
}
